package com.tuyan.aixiang.util;

import android.content.Context;
import android.os.Vibrator;

public class VibratorUtil {

    public static void vibrate(Context context, long milliseconds) {
        Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
        vibrator.vibrate(milliseconds);
    }

    public static void vibrateSlight(Context context) {
        vibrate(context, 100);
    }
}
